/*
*********************************************************************************************************
*                                              uC/TFTPc
*                               Trivial File Transfer Protocol (client)
*
*                    Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
*
*                                 SPDX-License-Identifier: APACHE-2.0
*
*               This software is subject to an open source license and is distributed by
*                Silicon Laboratories Inc. pursuant to the terms of the Apache License,
*                    Version 2.0 available at www.apache.org/licenses/LICENSE-2.0.
*
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                         TFTP CLIENT TYPE MODULE
*
* Filename : tftp-c_type.h
* Version  : V2.01.00
*********************************************************************************************************
* Note(s)  : (1) Assumes the following versions (or more recent) of software modules are included in
*                the project build :
*
*                  (a) uC/CPU    V1.29.02
*                  (b) uC/LIB    V1.38.00
*                  (c) uC/Common V1.00.00
*                  (d) uC/TCP-IP V3.02.00
*
*
*            (2) For additional details on the features available with uC/TFTPc, the API, the
*                installation, etc. Please refer to the uC/TFTPc documentation available at
*                https://doc.micrium.com.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*********************************************************************************************************
*                                               MODULE
*
* Note(s) : (1) This header file is protected from multiple pre-processor inclusion through use of the
*               TFTPc present pre-processor macro definition.
*********************************************************************************************************
*********************************************************************************************************
*/

#ifndef  TFTPc_TYPE_MODULE_PRESENT                                   /* See Note #1.                                         */
#define  TFTPc_TYPE_MODULE_PRESENT


/*
*********************************************************************************************************
*********************************************************************************************************
*                                            INCLUDE FILES
*********************************************************************************************************
*********************************************************************************************************
*/

#include  <cpu.h>
#include  <Source/net_type.h>


/*
*********************************************************************************************************
*********************************************************************************************************
*                                             DATA TYPES
*********************************************************************************************************
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                    TFTPc CONFIGURATION DATA TYPE
*********************************************************************************************************
*/

typedef  struct  tftpc_cfg {
    CPU_CHAR            *ServerHostnamePtr;
    NET_PORT_NBR         ServerPortNbr;
    NET_IP_ADDR_FAMILY   ServerAddrFamily;

    CPU_INT32U           RxInactivityTimeout_ms;
    CPU_INT32U           TxInactivityTimeout_ms;
} TFTPc_CFG;


/*
*********************************************************************************************************
*********************************************************************************************************
*                                             MODULE END
*********************************************************************************************************
*********************************************************************************************************
*/

#endif  /* TFTPc_TYPE_MODULE_PRESENT  */
